Initialize state_entry_time to zero for all idle vcpus
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 10 Dec 2008 13:41:34 +0000 (13:41 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 10 Dec 2008 13:41:34 +0000 (13:41 +0000)
commit7132ae7e553f5dead2cb246165490ad4155ee83b
treef55aa9d657bc383b818a9cbaf5eb3ca7fa2574ca
parent00118705d44feea9b8c93db25d13329b942685d9
Initialize state_entry_time to zero for all idle vcpus

NOW() is not usable since xen time sub-system hasn't
been initialized yet. On my box, it gives a initial
stamp ~60s due to local tsc stamp as zero and TSC
count is started from power on. Then a negative value
is added to runstate of that idle vcpu at schedule
point. The net effect is for some tool like xenpm
to show a big idle time gap between BSP and other APs.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/domain.c